<template>
  <div style="display: inline-flex; flex-direction: column; align-items: center;">
    <NodeFactory :data="data" :verifyMode="verifyMode" :eventLancher="eventLancher"/>
    <section class="end-node">流程结束</section>
  </div>
</template>
<script setup>
import {defineProps, defineEmits} from 'vue';
import NodeFactory from './NodeFactory.vue';
const props = defineProps({
  data: {
    type: Object,
    required: true
  },
  verifyMode: {
    type: Boolean,
    default: true
  }
});
const emits = defineEmits(['emits']);
const eventLancher = (event, ...args) => {
  let param = {
    event,
    args
  };
  emits('emits', param);
};
</script>
<style scoped lang="scss">
// 这里可以复制原代码中 .end-node 相关样式
</style>
